Write some code for infoboxes from geojson using Bing Maps SDK

Fermé

Description

Hi,

I'm teaching myself how to use Bing Maps SDK to create online maps. I'm having trouble creating infoboxes for my geojson feed & would appreciate it if someone could write the code.

Example:

[url removed, login to view]+JS

In the link above, if you click a point on the map, an infobox pops up with description/title.

Please cut'n paste the code below into the Bing Maps SDK javascript windows:

var map = new [url removed, login to view]([url removed, login to view]('myMap'), {

credentials: 'Your Bing Maps Key',

});

//Load GeoJSON module.

[url removed, login to view]('[url removed, login to view]', function () {

//Read the GeoJSON file that is hosted on a different domain but has CORs enabled.

[url removed, login to view]('[url removed, login to view]',

function (shapes) {

//Add the shape(s) to the map.

[url removed, login to view](shapes);

});

});

As you will see, when you click on the points from the geojson feed, they doesn't have infoboxes.

Below is an example of the attributes from the geojson feed:

{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"OBJECTID":25,"ID":"CAM00080","Title":"MF/HODGES DR WEBCAM - CAM080","Direction":"NW","href":"[url removed, login to view]"},"geometry":{"type":"Point","coordinates":[[url removed, login to view],[url removed, login to view]]}},

Could you please write some code which addes infoboxes to my geojson points. Please populate the infobox with info from the geojson feed. For example:

ID: CAM00080

Title: MF/HODGES DR WEBCAMCAM080

Direction: NW

href: [url removed, login to view]

Lastly, if my geojson had info for a jpeg... I would like the photo to display in the infobox.

I will cut'n paste your code into the Bing Maps SDK to see how it works.

Hope that makes sense.

Please see this forum post if you need more info:

[url removed, login to view]

Look forward to hearing from you.

Cheers

Nick

Compétences : Cartographie & Plans , Géospatial, API Google Maps, HTML, JSON

Voir plus : software write mq4, software write chip epson, useful software write book, software write web specs, free software write user guide, software write edid, free software write company profile, software write websites idea, software write book images, example awgn channel using code matlab, capture movie using code, software write books, login site using code, set title page using code, cloning youtube using code igniter, setting gridview width column using code behind, software write protection, using code uploading, free software write book, software write book, batch process scan using code, iphone gps google maps develop integrate source code, digital alarm clock pic using code, dynamic crystal report using code, payment gateway aspnet using code

N° du projet : #13462636

Décerné à :

Appel

Hello I investigated the API and I know how to accomplish it. I can write some sample code for you if you want. Contact me to discuss further details. Kind regards, Albert van Halen

30 $ AUD en 1 jour
(30 Commentaires)
5.1

4 freelance ont fait une offre moyenne de 29 $ pour ce travail

vw7317507vw

i work using thinks like that contact me.

35 $ AUD en 1 jour
(0 Commentaires)
0.0
technologicsols

Dear Prospect Hiring Manager. Thank you for giving me a chance to bid on your project. i am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned I have Plus

26 $ AUD en 6 jours
(0 Commentaires)
0.0
rayhanuddinakhan

you can use a map plugin than solved this problem are you understated and contact me.................................................

25 $ AUD en 1 jour
(0 Commentaires)
0.0