On Mar 8, 9:55 am, scfc <mj1...@gmail.com> wrote:
> I am having difficulties making a map on two different pages work.
>
> I am trying to show points from a georss feed xml file on a google map.
>
> I am new to Javascript etc. and have tried several things from the
> Javascript Overlay API v3 webpage but nothing works.
>
> There are several things I want to do with it, but can’t figure out how.
>
> I can get the points to show but can’t get my icons to show instead of the
> default one.
>
> Here are the pages so far:
>
> http://www.state.sc.us/forest/scnotifs.htm
>
> http://www.state.sc.us/forest/scfires.htm
>
> 1. I want to set the zoom to level on both pages so that it will show out
> entire state every time the map opens.  I thought setting zoom level would
> do that, but it always expands to the fartherest points and if there is only
> one point it zooms into that one. I want the state of SC centered with state
> lines showing.

You want the preserveViewport option of the KmlLayer set to false.

>
>    1. I want my icon (burnnotif.gif) to show up instead of the default ones.
>
> (fireactive.gif and fireout.gif for the scfires page)

You may not be able to do that with georss (I don't know), if you use
kml, you can define your own icon in the kml.


>
>    1. I want to pull the information from the xml file to populate the info
>    window.
>
> (status, location, landmark, county, initial report, forested acres,
> non-forested acres, total acres, and cause)
>
> Any help would be greatly appreciated.

You can do all that with the API, but there will be a steep learning
curve as you are new to javascript.

You may want to look at the third party kml/georss parser GeoXml in
the v2 API:
http://infoweb01.dhec.sc.gov/forestry/public_burn_out.xml

It handles georss and is pretty mature.  I think it will allow you to
define your own icons.

It hasn't been ported to v3 yet (there is a geoxml3, which parses kml,
but it is nowhere near as mature and full featured as GeoXml).

  -- Larry

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to